<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: {2021/1/11}
 * Time: {16:19}
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

namespace app\common\validate;


use think\Validate;

class User extends Validate
{
    protected $rule = [
        "phone_number" => "require|mobile"
    ];
    protected $message = [
        "phone_number.require" => "必须输入手机号码",
        "phone_number.mobile" => "手机号格式不正确"
    ];
    protected $scene = [
        "sms" => ['phone_number']
    ];
}